CC = g++
LD = g++

TARGET = build/clicktest 
INCLUDES = -I ../include 
LIB = -L ../lib
CFLAGS = -O0 -std=c++17 -Wall
LDFLAGS = -lclickhouse-cpp-lib

SRC := $(wildcard main.cpp) 
OBJS=$(SRC:.cpp=.o)

#$(warning  DEPS: $(DEPS))

.PHONY:all clean

#g++ -std=c++17 main.cpp -L ../lib -o build/clicktest -I ../include/ -lclickhouse-cpp-lib

all: $(TARGET) 

$(TARGET): $(OBJS)  ../lib/libclickhouse-cpp-lib-static.a ../lib/liblz4-lib.a  ../lib/libcityhash-lib.a
	$(LD) -o $@ $^ 

%.o:%.cpp 
	$(CC) -c -g $< $(INCLUDES) $(CFLAGS) -o $@ 

clean:
	rm $(TARGET) $(OBJS) 
